import { RouteRecordRaw } from "vue-router";

const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "baseLayout",
    redirect: "/tasks",
    component: () => import("@/layouts/BaseLayout"),
    children: [
      {
        path: "tasks",
        name: "tasks",
        meta: { title: "任务" },
        component: () => import("@/views/tasks/index"),
      },
      {
        path: "services",
        name: "services",
        meta: { title: "服务" },
        component: () => import("@/views/services/index"),
      },
    ],
  },
];

export default routes;
